package com.example.demo.service;



import com.example.demo.pojo.Catrgoryicon;
import com.example.demo.pojo.Order;
import com.example.demo.pojo.OrderParamaccepttijiao;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author yanglup
 * @create 2020-11-23 20:41
 */
public interface OrdersBackService {

    /**卖家全部订单*/
    PageInfo<Order> BackOrderslist(Integer pageNo, Integer pageSize);
//    List<Order> BackOrderslist();

    /**创建订单*/
    void createorderstableback(String openid, String openidbuy, String consignee_addr, Integer order_price, Integer goods_id, Integer goods_number, Integer goods_price, Integer order_status, String goods_name, String order_number, Integer buyer, Integer seller, String goods_small_logo);

    /**修改时查询某商品*/
    OrderParamaccepttijiao selectorderParamaccepttijiao(Integer goods_id);
    /**修改订单*/
    void updateorderstableback(Integer order_id, String openid, String openidbuy, String consignee_addr, Integer order_price, Integer goods_id, Integer goods_number, Integer goods_price, Integer order_status, String goods_name, String order_number, Integer buyer, Integer seller, String goods_small_logo);

    /**删除商品*/
    void Ordersdelete(Integer goods_id);

    /**所有订单数量*/
    Integer Ordersallnumber();

    /**搜索图书名称*/
    List<Order> Ordersearch(String goods_name);
    /**搜索的图书的数量*/
    Integer Ordersearchnumber(String goods_name);


}
